package com.kcral.javase.ch.properties;

/**
 * @TODO
 * @Author xu
 * 2025/3/3
 */
public class Father extends GrandFather{
    private  String  occupation;


    public Father(String name, int age, String occupation)
    {
        super(name, age);
        this.occupation = occupation;
    }

    public void getFather()
    {
        super.getGranderFather();
        System.out.println( "职业是" + occupation);
    }

}
